<!--{template common/header}-->
{eval $loginhash = 'L'.random(4);}
<div class="box"><a href="forum.php">{lang return_forum}</a><span class="pipe">|</span><a href="javascript:history.back();" onclick="javascript:history.back();" title="{lang goback}" >{lang goback}</a></div>
<div class="bm mtn">
	<div class="bm_h">{lang login}</div>
		<form method="post" action="member.php?mod=logging&action=login&loginsubmit=yes&loginhash=$loginhash&mobile=yes" onsubmit="{if $_G['setting']['pwdsafety']}pwmd5('password3_$loginhash');{/if}" >
		<input type="hidden" name="formhash" id="formhash" value='{FORMHASH}' />
		<input type="hidden" name="referer" id="referer" value="<!--{if dreferer()}-->{echo dreferer()}<!--{else}-->forum.php?mobile=yes<!--{/if}-->" />
		<!--{if $auth}-->
			<input type="hidden" name="auth" value="$auth" />
		<!--{/if}-->
	<div class="bm_c">
	<p>
		<select name="fastloginfield" id="fastloginfield_{$loginhash}" >
		<option value="username">{lang username}</option>
		<!--{if getglobal('setting/uidlogin')}-->
		<option value="uid">UID</option>
		<!--{/if}-->
		<option value="email">Email</option>
		</select>
		<input type="text" name="username" id="username_{$loginhash}" class="txt" />
	</p>
	<p>
		{lang password}:<input type="password" name="password" id="password3_$loginhash" class="txt" value='' />
	</p>
	<p>
		<!--{if $seccodecheck}-->
			<!--{subtemplate common/seccheck}-->
		<!--{/if}-->
	</p>
	<p>
		<input type="submit" name="submit" id="submit" value="{lang login}" />
		<input type="reset" value="{lang reset}" />
	</p>
	<p>
		<select name="questionid" id="questionid_{$loginhash}" >
		<option value="0">{lang security_question}</option>
		<option value="1">{lang security_question_1}</option>
		<option value="2">{lang security_question_2}</option>
		<option value="3">{lang security_question_3}</option>
		<option value="4">{lang security_question_4}</option>
		<option value="5">{lang security_question_5}</option>
		<option value="6">{lang security_question_6}</option>
		<option value="7">{lang security_question_7}</option>
		</select>
		<input type="text" name="answer" id="answer_{$loginhash}" class="txt" />
	</p>
	<p>
		<label><input type="checkbox" name="cookietime" id="cookietime_{$loginhash}" class="pc" value="2592000" checked="checked" />{lang login_permanent}</label>
	</p>
    </div>
</form>
</div>

<!--{if $_G['setting']['pwdsafety']}-->
	<script type="text/javascript" src="{$_G['setting']['jspath']}md5.js?{VERHASH}" reload="1"></script>
<!--{/if}-->
<!--{eval updatesession();}-->
<!--{template common/footer}-->